\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb,amsthm,amscd}
\usepackage[colorlinks]{hyperref}
\usepackage{graphicx}
\usepackage{sectsty}
% first colour for latex or pdflatex
\ifx\pdfoutput\@undefined\usepackage[usenames,dvips]{color}\else\usepackage[usenames,dvipsnames]{color}
% Usar esse caso queira converter para Preto & Branco
%\ifx\pdfoutput\@undefined\usepackage[usenames,dvips,monochrome]{color}\else\usepackage[usenames,dvipsnames,monochrome]{color}

% Cor do título
\let\LaTeXtitle\title
\renewcommand{\title}[1]{\LaTeXtitle{\color{Brown}\textsf{#1}}}
% Muda pagestyle para headings, mas deixa em minúsculas, sans-serif e colorido
\pagestyle{headings}
\renewcommand{\MakeUppercase}[1]{\color{OliveGreen}\textsf{#1}}

% Algumas idéias de comandos que não funcionam muito bem, mas que algum dia devo procurar pra funcionar direito 
%\renewcommand{\contentsname}{\color{Sepia}Contents}
%\renewcommand{\abstract}{\color{blue}}
%\renewcommand{\figurename}{\color{Sepia}Figure}
%\renewcommand{\tablename}{\color{Sepia}Table}

% Fonte das seções
\allsectionsfont{\sffamily}
% Cor da fonte das seções
\let\LaTeX@startsection\@startsection 
\renewcommand{\@startsection}[6]{\LaTeX@startsection{#1}{#2}{#3}{#4}{#5}{\color{MidnightBlue}\raggedright #6}} 
% Definição das listas
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\labelenumi}{\sffamily\bfseries\color{OliveGreen}\theenumi.}
%\renewcommand{\labelitemi}{\ding{52}}
\renewcommand{\descriptionlabel}[1]{\hspace{\labelsep}\bfseries\color{BrickRed}\textsf{#1}}
% Quadradinho do fim de uma demonstração
\renewcommand{\qedsymbol}{$\blacksquare$} 
% Numeração das equações e das figuras
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\renewcommand{\thefigure}{\thesection.\arabic{figure}}
% Teoremas coloridos
%\newtheoremstyle{NAME}{ABOVESPACE}{BELOWSPACE}{BODYFONT}{INDENT}{HEADFONT}{HEADPUNCT}{HEADSPACE}{CUSTOM-HEAD-SPEC}
\newtheoremstyle{plain_red}{}{}{\color{BrickRed}\itshape}{}{\color{BrickRed}\bfseries}{\color{BrickRed}.}{ }{}
\newtheoremstyle{plain_green}{}{}{\color{OliveGreen}\itshape}{}{\color{OliveGreen}\bfseries}{\color{OliveGreen}.}{ }{}
\newtheoremstyle{plain_blue}{}{}{\color{NavyBlue}\itshape}{}{\color{NavyBlue}\bfseries}{\color{NavyBlue}.}{ }{}
\newtheoremstyle{plain_yellow}{}{}{\color{Bittersweet}\itshape}{}{\color{Bittersweet}\bfseries}{\color{Bittersweet}.}{ }{}

\newtheoremstyle{definition_red}{}{}{\color{BrickRed}}{}{\color{BrickRed}\bfseries}{\color{BrickRed}.}{ }{}
\newtheoremstyle{definition_green}{}{}{\color{OliveGreen}}{}{\color{OliveGreen}\bfseries}{\color{OliveGreen}.}{ }{}
\newtheoremstyle{definition_blue}{}{}{\color{NavyBlue}}{}{\color{NavyBlue}\bfseries}{\color{NavyBlue}.}{ }{}
\newtheoremstyle{definition_yellow}{}{}{\color{Bittersweet}}{}{\color{Bittersweet}\bfseries}{\color{Bittersweet}.}{ }{}

\newtheoremstyle{remark_red}{}{}{\color{BrickRed}}{}{\color{BrickRed}\itshape\bfseries}{\color{BrickRed}:}{ }{}
\newtheoremstyle{remark_green}{}{}{\color{OliveGreen}}{}{\color{OliveGreen}\itshape\bfseries}{\color{OliveGreen}:}{ }{}
\newtheoremstyle{remark_blue}{}{}{\color{NavyBlue}}{}{\color{NavyBlue}\itshape\bfseries}{\color{NavyBlue}:}{ }{}
\newtheoremstyle{remark_yellow}{}{}{\color{Bittersweet}}{}{\color{Bittersweet}\itshape\bfseries}{\color{Bittersweet}:}{ }{}

\newtheoremstyle{plain_red_head}{}{}{}{}{\color{BrickRed}\bfseries}{\color{BrickRed}:}{ }{}
\newtheoremstyle{plain_green_head}{}{}{}{}{\color{OliveGreen}\bfseries}{\color{OliveGreen}:}{ }{}
\newtheoremstyle{plain_blue_head}{}{}{}{}{\color{NavyBlue}\bfseries}{\color{NavyBlue}:}{ }{}
\newtheoremstyle{plain_yellow_head}{}{}{}{}{\color{Bittersweet}\bfseries}{\color{Bittersweet}:}{ }{}
\newtheoremstyle{plain_fuchsia_head}{}{}{}{}{\color{Fuchsia}\bfseries}{\color{Fuchsia}:}{ }{}
\newtheoremstyle{plain_sepia_head}{}{}{}{}{\color{Sepia}\bfseries}{\color{Sepia}:}{ }{}

% Teoremas
\theoremstyle{plain_blue}\newtheorem{teorema}{Teorema}[section]
\theoremstyle{plain_green}\newtheorem{lema}[teorema]{Lema}\newtheorem{proposicao}[teorema]{Proposição}
\theoremstyle{plain_red}\newtheorem{corolario}[teorema]{Corolário}
\theoremstyle{plain_green}\newtheorem{problema}[teorema]{Problema}%\Coffecup

\theoremstyle{definition_blue}\newtheorem{definicao}[teorema]{Definição}
\theoremstyle{definition_green}\newtheorem{exemplo}[teorema]{Exemplo}
\theoremstyle{definition_yellow}\newtheorem{suposicao}[teorema]{Suposição}

\theoremstyle{remark_red}\newtheorem{observacao}{Observação}%\Info
\theoremstyle{remark_blue}\newtheorem*{notacao}{Notação}

\theoremstyle{plain_fuchsia_head}\newtheorem*{ideia}{Idéia}%\lightbulb
\theoremstyle{plain_green_head}\newtheorem*{prova}{Prova}%\leftpointright
\theoremstyle{plain_sepia_head}\newtheorem*{duvida}{Dúvida}%\leftpointright

